package com.example.canvastest;

import android.app.Activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class MyViewTest extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        int flag = getIntent().getIntExtra("flag", -1);
        switch (flag) {
            case 0:
                setContentView(R.layout.drawrect_stroke_and_fill);
                break;
            case 1:
                setContentView(R.layout.drawpoints);
                break;
            case 2:
                setContentView(R.layout.drawlineandlines);
                break;
            case 3:
                setContentView(R.layout.drawroundrect);
                break;
            case 4:
                setContentView(R.layout.drawcircle);
                break;
            case 5:
                setContentView(R.layout.drawarc);
                break;
            case 6:
                setContentView(R.layout.drawoval_drawpath);
                break;
            case 7:
                setContentView(R.layout.drawtext);
                break;
            case 8:
                setContentView(R.layout.multipleview);
                break;
        }
    }
}

